Ext.define("wmf.view.access.query", {
    extend: "wmf.lib.FormPanel",
    alias: "widget.accessQuery",
	anchor: '100% 100%',
    border: false,
    fieldDefaults: {
        labelWidth: 90
    },
    items: [{
    	xtype: 'combo',
 		emptyText:  '请选择...',
 		hiddenName: 'ecId',
 		autoSelect: true,
 		displayField: 'name',
 		queryMode: 'remote',
 		valueField: 'ecId',
 		triggerAction: 'all',
 		//editable: false,
 		minChars: 1,
		forceSelection : true,
		selectOnFocus : true,  
        listeners : {
			'beforequery': function(e){
				wmf.data.filterQuery(e);
			}
		},
 		store: 'access.ecId',
        name: "ecId", 
        fieldLabel: "企业名称/ID"
    }],
    
	dockedItems: [{
		xtype: 'toolbar',
		dock: 'bottom',
		layout: {
			type: 'hbox',
			alian: 'center',
			flex: 1
		},
		
		defaults: {
			xtype: 'button'
		},
		
		items: [{
			xtype : 'tbfill'
		},{
			itemId: 'save',
			icon: 'resources/icons/find.png',
			formBind: true,
			text: translations.global.operation.query
		},{
			itemId: 'reset',
			icon: 'resources/icons/icon_recover.png',
			text: translations.global.operation.reset
		},{
			itemId: 'cancel',
			icon : 'resources/icons/icon_revoke.png',
			text: translations.global.operation.cancel
		}]
	}]
});